package com.autonavi.yunda.yunji.core.vo.node;

import com.autonavi.yunda.yunji.common.exception.AmapPreconditions;
import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * redis oss节点
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class RedisNode extends BaseNode {
    public String redisInstance;
    public String operate;
    public String key;
    public String value;
    public String expire;

    public String cacheType;
    public String bucket;
    public String ossPath;

    @Override
    public void customParamCheck() {
        AmapPreconditions.checkNotNull(redisInstance);
        AmapPreconditions.checkNotNull(operate);
        AmapPreconditions.checkNotNull(key);
    }
}
